package com.my.ext.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.my.ext.entity.Admin;
import com.my.ext.entity.Org;

@Repository
public interface OrgMapper {

	public List<Org> findByPage();
	public int saveOrg(@Param("org")Org org);
	
	public int saveRelation(@Param("a_id") int a_id, @Param("o_id") int o_id);
	public Org findByAdmin(@Param("admin") Admin admin);
	public Org findOrgByID(@Param("id") int id);
	
}
